export const Types = {
    CATALOG : {
        VALUE :0,
        NAME :"目录",
        COLOR :"#108ee9",
    },
    MENU:{
        VALUE :1,
        NAME :"菜单",
        COLOR :"#87d068",
    },
    BUTTON:{
        VALUE : 2,
        NAME :"按钮",
        COLOR :"#f0ad4e",
    }
}

export function getTypes(val){
    for (var prop in Types){
//        console.log("jsonObj[" + prop + "]=" + Types[prop]);
       if(Types[prop].VALUE === val){
           return Types[prop];
       }
    }
} 


